//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_damage_voucher.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {},
		editFormOptions: [],
		searchFormFields: { Voucher_sub: '', Goods_num: [null, null], WHSE_no: '', AuditStatus: '' },
		searchFormOptions: [
			{ title: '单据编码', field: 'Voucher_sub', type: 'like' },
			{ title: '数量', field: 'Goods_num', type: 'range' },
			{ key: '一级仓库', data: [], title: '报损机构', field: 'WHSE_no', type: 'select' },
			{ type: 'group' },
			{ key: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'select' }
		],
		columns: [
			{ field: 'Voucher_sub', title: '单据编码', type: 'string', link: true },
			{ field: 'Goods_num', title: '数量', type: 'float' },
			{ field: 'WHSE_no', title: '报损机构', type: 'string', bind: { key: '一级仓库', data: [] } },
			{ field: 'Remark', title: '备注', type: 'string' },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'Creator', title: '创建人员', type: 'string' },
			{ field: 'CreateDate', title: '创建时间', type: 'datetime' }
		],
		table: {
			key: 'Damage_voucher',
			footer: 'Foots',
			cnName: '报损单',
			name: 'q_damage_voucher',
			url: '/q_damage_voucher/',
			sortName: 'Voucher_sub'
		}
	};
}
